import com.cebbank.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author name:dss
 * @version 1.0
 * @description: TODO
 * @date 2022/8/252022/8/25
 */
public class testMybatis {

    @Test
    public void testTransaction(){

        ApplicationContext context=new ClassPathXmlApplicationContext("spring-mybatis.xml");
        UserService u=(UserService)context.getBean("userServiceImpl");
        u.showUserList();
        u.transferAccount();
    }
}
